<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://unpkg.com/axios/dist/axios.min.js">
      
    </script>
    <script>
        let data = axios.get('https://jsonplaceholder.typicode.com/posts')
        console.log(data)
        data.then(function(response){
            console.log(response)
        }).catch(function(error){
            console.log(error)
        })
      
    </script>
</body>
</html>